# 生成一些各种类型的数据
list1 = [1, 2, 3, 4, 5]
list2 = [6, 7, 8, 9, 10]
tuple1 = (1, 2, 3, 4, 5)
tuple2 = (6, 7, 8, 9, 10)
set1 = {1, 2, 3, 4, 5}
set2 = {6, 7, 8, 9, 10}
dict1 = {"name": "tom", "age": 20, "gender": "男"}
dict2 = {"name": "rose", "age": 21, "gender": "女"}
str1 = "hello"
str2 = "world"

# 加号运算符
print("加号运算符")
print("list1 + list2")
print(list1 + list2)
print("--------------------------------")
print("tuple1 + tuple2")
print(tuple1 + tuple2)
print("--------------------------------")
print("set1 + set2 集合不支持加号运算符")
# print(set1 + set2) # 集合不支持加号运算符
print("--------------------------------")
print("dict1 + dict2 字典不支持加号运算符")
# print(dict1 + dict2) # 字典不支持加号运算符
print("--------------------------------")
print("str1 + str2")
print(str1 + str2)
print("--------------------------------")

print("================================================"*2)

# 乘号运算符
# 乘号运算符用于将一个序列重复指定的次数
# 列表、元组、字符串支持乘号运算符 
print("乘号运算符") 
print("list1 * 2")
print(list1 * 2)
print("--------------------------------")
print("tuple1 * 2")
print(tuple1 * 2)
print("--------------------------------")
print("str1 * 2")
print(str1 * 2)
print("--------------------------------")
print("set1 * 2 集合不支持乘号运算符")
# print(set1 * 2) # 集合不支持乘号运算符
print("--------------------------------")
print("dict1 * 2 字典不支持乘号运算符")
# print(dict1 * 2) # 字典不支持乘号运算符
print("--------------------------------")





